<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxml="urn:schemas-microsoft-com:xslt"
  xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:rc="urn:cultiv.restcontour"
  exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets rc ">

  <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>

  <xsl:param name="currentPage"/>
 
  <xsl:template match="/">
    <xsl:variable name="setFormGuid" select="rc:SetContourGuid('4e35c8ba-4e8a-47d5-ae5f-717ce81e6993')"/>
    <xsl:variable name="formGuid" select="rc:GetContourGuid()"/>

    <form action="" method="post" id="form-{$formGuid}" name="qaForm">
      <ul class="formArea">
        <li>
          <label for="Name">Name:</label>
          <input type="text" name="Name"/>
        </li>
        <li>
          <label for="Email">E-mail:</label>
          <input type="text" name="Email"/>
        </li>
        <li>
          <label for="Message">Question:</label>
          <textarea name="Message">
            <xsl:text> </xsl:text>
          </textarea>
        </li>
        <li>
          <select name="Droptest">
            <option value=""></option>
            <xsl:for-each select="rc:GetPrevaluesForFieldName('Droptest')//PreValue">
              <option value="{Value}">
                <xsl:value-of select="Value"/>
              </option>
            </xsl:for-each>
          </select>
        </li>
        <li class="send-button">
          <input type="submit" value="Send" class="button" />
        </li>
        <li class="errorList">
          <ul class="errorList">
            <xsl:comment/>
          </ul>
        </li>
      </ul>
      <div class="formLoading hide">
        <h2>Processing</h2>
        <h4>The form is being sent</h4>
      </div>
      <div class="formPosted hide">
        <h2>Thanks</h2>
        <h4>We've successfully recieved the form, thanks!</h4>
      </div>
    </form>

    <script type="text/javascript">
      <xsl:text>jQuery(document).ready(function () {</xsl:text>
      <xsl:value-of select="rc:BuildForm()" disable-output-escaping="yes"/>
      <xsl:text>});</xsl:text>
    </script>



    <xsl:variable name="setFormGuid2" select="rc:SetContourGuid('e922848d-13ce-4657-a501-eb66a28f1cf4')"/>
    <xsl:variable name="formGuid2" select="rc:GetContourGuid()"/>

    <xsl:if test="count($currentPage/node) != 0">
      <xsl:for-each select="$currentPage/node">
        <h3>
          <xsl:value-of select="@nodeName"/>
        </h3>
        <p>
          <xsl:value-of select="data [@alias = 'answer']" disable-output-escaping="yes"/>
        </p>
      </xsl:for-each>
    </xsl:if>

    <form action="" method="post" id="form-{$formGuid2}" name="qaForm">
      <ul class="formArea">
        <li>
          <label for="Name">Naam:</label>
          <input type="text" name="Name" class="input-medium2 normalFields"/>
        </li>
        <li>
          <label for="Email">E-mail:</label>
          <input type="text" name="Email" class="input-medium2 normalFields" />
        </li>
        <li>
          <label for="Comment">Comment:</label>
          <textarea name="Comment" class="input-medium2 normalFields">
            <xsl:text> </xsl:text>
          </textarea>
        </li>
        <li>
          <select name="Nogeendrop">
            <option value=""></option>
            <xsl:for-each select="rc:GetPrevaluesForFieldName('Nogeendrop')//PreValue">
              <option value="{Value}">
                <xsl:value-of select="Value"/>
              </option>
            </xsl:for-each>
          </select>
        </li>
        <li class="send-button">
          <input type="submit" value="Send" class="button" />
        </li>
        <li class="errorList">
          <ul class="errorList">
            <xsl:comment/>
          </ul>
        </li>
      </ul>
      <div class="formLoading hide">
        <h2>Processing</h2>
        <h4>The form is being sent</h4>
      </div>
      <div class="formPosted hide">
        <h2>Thanks</h2>
        <h4>We've successfully recieved the form, thanks!</h4>
      </div>
    </form>

    <script type="text/javascript">
      <xsl:text>jQuery(document).ready(function () {</xsl:text>
      <xsl:value-of select="rc:BuildForm()" disable-output-escaping="yes"/>
      <xsl:text>});</xsl:text>
    </script>
    
  </xsl:template>

</xsl:stylesheet>